package com.ruoyi.erp.planner.service.Impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.erp.planner.domain.Planner;
import com.ruoyi.erp.planner.mapper.PlannerMapper;
import com.ruoyi.erp.planner.service.PlannerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author QiuRongYu@itcast.cn
 * @version 1.0
 * @date 2020/12/25
 */
@Service
public class PlannerServiceImpl implements PlannerService {
    @Resource
    private PlannerMapper plannerMapper;


    @Override
    public List<Planner> plannerList(Planner planner) {
        return plannerMapper.plannerList(planner);
    }

    @Override
    public void plannerAdd(Planner planner) {
        plannerMapper.plannerAdd(planner);
    }

    @Override
    public Object plannerIds(String buyerCode) {
        return plannerMapper.plannerIds(buyerCode);
    }

    @Override
    public void plannerEdit(Planner planner) {
        plannerMapper.plannerEdit(planner);
    }

    @Override
    public void remove(String ids) {
        String[] buyerCode = Convert.toStrArray(ids);
        plannerMapper.remove(buyerCode);
    }
    }

